<?php 
  $mylogin = $this->session->userdata('mylogin');
  getUser($this->config->item('use_auth'));

  ?>
<html><head>
<title><?php echo getLangText('site_admin_base_title',$this);?><?=$title?></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="robots" content="nofollow" />

<link rel="stylesheet" href="<?=$admin_css_path;?>lightbox.css" type="text/css" />

<link rel="stylesheet" href="<?=$admin_css_path;?>facebox.css" type="text/css" />
<link rel="stylesheet" href="<?=$admin_css_path;?>styles.css" type="text/css" />
<script type='text/javascript' src='<?=$admin_js_path;?>jquery.js'></script>
<link rel="stylesheet" href="<?=$admin_css_path;?>top_dropdownmenu.css" type="text/css" />
<link type="text/css" rel="stylesheet" href="<?=$admin_js_path;?>calendar/css/jscal2.css" />
<link type="text/css" rel="stylesheet" href="<?=$admin_js_path;?>calendar/css/border-radius.css" />
<link id="skin-steel" title="Steel" type="text/css" rel="alternate stylesheet" href="<?=$admin_js_path;?>calendar/css/steel/steel.css" />
<script type="text/javascript" src="<?=$js_path;?>jquery_rsv.js" ></script>
<script type="text/javascript" src="<?=$admin_js_path;?>jquery.easing.1.3.js" ></script>
<script src="<?=$admin_js_path;?>calendar/js/jscal2.js"></script>
<script src="<?=$admin_js_path;?>calendar/js/lang/en.js"></script>
<script type="text/javascript" src="<?=$admin_js_path;?>jquery_tabs.js"></script>
<script type="text/javascript"  src="<?=$admin_js_path;?>nicEdit.js">
<script type='text/javascript' src='<?=$admin_js_path;?>lightbox.js'></script>




<script type="text/javascript">
var admin_image_path ="<?php echo $admin_image_path;?>";
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox()
}) 
$(document).ready(function()
{
   $("#category").change(function()
   {
			var category=  $('#category').val();
    		$("#subcategory").load('<?=$admin_base_url;?>category/subCategory/'+category);
			$("#subject").load('<?=$admin_base_url;?>subject/subjectlist/'+category);
   		});
   	 });
</script>
<script type='text/javascript' src='<?=$admin_js_path;?>facebox.js'></script>


</head>
<body>
<div id="wrapper">
	<div class="top"><img src="<?= $admin_image_path;?>admin1.jpg" height="100" width="100" align="left">
    Admin Panel
    </div>
  
<script type="text/javascript" src="<?=$admin_js_path;?>top_menu.js"></script>

		
        
             <?php
		  if(empty($dashboard))
            {
            echo $menu;
            }
		 ?>
        
             <?php if(!empty($mylogin)) { ?>
  <div style="text-align:right;padding-bottom:10px;" id="login">Welcome <?php echo $mylogin['name'];?>&nbsp;&nbsp;<a href="<?php echo $admin_base_url;?>auth/logout"><?php echo getLangText('site_logout',$this);?></a></div>
  <?php } ?>
        
	



  
     	<div class='aa'>
			<?php 
           
             include('subheader.php');?>
     
      		<?php echo $content_for_layout?>
           </div>
    
    
    
    
   		  
    
</div>

</body>
</html>  